package com.elastic.strategy;

import com.elastic.strategy.interfaces.Discount;

public class VIPDiscount implements Discount {


    @Override
    public Double calculate(Double price) {
        System.out.println("VIP票：");
        System.out.println("增加积分！");
        return price * 0.5;
    }
}
